package com.guoxin.chapter3.waitnotify.producerconsumer;


/**
 * @author guoxin
 * @date 2019年8月22日
 */
public class Run {
	public static void main(String[] args) {
		Object lock = new Object();
		Producer producer = new Producer(lock);
		Consumer consumer = new Consumer(lock);
		
		ThreadP p = new ThreadP(producer);
		ThreadC c = new ThreadC(consumer);
		
		p.start();
		c.start();
	}
}
